Skip to content

feat(@angular/build): allow control of source map sources content for application builds#29932

Merged
alan-agius4 merged 1 commit intoangular:mainfrom
clydin:application/sourcemap-contents
Mar 25, 2025
Merged

feat(@angular/build): allow control of source map sources content for application builds#29932
alan-agius4 merged 1 commit intoangular:mainfrom
clydin:application/sourcemap-contents

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented Mar 25, 2025

The sourceMap option now contains an additional sub-option named sourcesContent that allows the exclusion of original file content from generated source maps. This option affects both JavaScript and stylesheet source maps. The value of the sourcesContent option defaults to true.

Example usage to disable sources content:

    "sourceMap": {
        "scripts": true,
        "styles": true,
        "sourcesContent": false
    }

Closes #29551

… application builds

The `sourceMap` option now contains an additional sub-option named `sourcesContent`
that allows the exclusion of original file content from generated source maps.
This option affects both JavaScript and stylesheet source maps. The value of the
`sourcesContent` option defaults to `true`.

Example usage to disable sources content:
```
    "sourceMap": {
        "scripts": true,
        "styles": true,
        "sourcesContent": false
    }
```
@clydin clydin added the target: major This PR is targeted for the next major release label Mar 25, 2025
@angular-robot angular-robot Bot added detected: feature PR contains a feature commit area: @angular/build labels Mar 25, 2025
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Mar 25, 2025
@alan-agius4 alan-agius4 merged commit c1de633 into angular:main Mar 25, 2025
33 of 34 checks passed
@clydin clydin deleted the application/sourcemap-contents branch March 25, 2025 16:36
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Apr 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build detected: feature PR contains a feature commit target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow sourcesContent configuration

3 participants